import { Injectable } from "@angular/core";
import { StorageService } from "./storage.service";

@Injectable({
	providedIn: "root"
})
export class SetupService {
	constructor(private storage: StorageService) {}

	load(): Promise<any> {
		return new Promise((resolve) => {
			const token = this.storage.getStorage("Authorization");
			if (token) {
				return resolve("success");
			}
			return resolve("success");
		});
	}
}
